package com.cos.hospital.ui.patient.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.cos.hospital.R;
import com.cos.hospital.model.bean.MessageListBean;

import java.util.List;

/**
 * 消息发送适配器
 */
public class SendMessageAdapter extends BaseQuickAdapter<MessageListBean.ItemsBean, BaseViewHolder> {

    public SendMessageAdapter(@Nullable List<MessageListBean.ItemsBean> data) {
        super(R.layout.item_send_message, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MessageListBean.ItemsBean item) {
        helper.setText(R.id.tv_time, item.getFldMessageTime());
        helper.setText(R.id.tv_content, item.getFldMessageContent());
    }
}